package com.ztgf.order.models.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ztgf.common.annotations.CustomerBigDecimalSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author YUE
 * @create 2020-06-27 13:53
 */
@Data
public class OrderCommodityDetailVO implements Serializable {
    @ApiModelProperty(value = "类目id")
    private Long categoryId;
    @ApiModelProperty(value = "商品id")
    private Long commodityId;
    @ApiModelProperty(value = "规格属性ids/套餐id")
    private String attrIds;
    @ApiModelProperty(value = "商品名字")
    private String commodityName;
    @ApiModelProperty(value = "商品图片")
    private String commodityImgUrl;
    @ApiModelProperty(value = "商品数量")
    private String commodityNum;
    @ApiModelProperty(value = "批发数量")
    private Integer wholesaleNum;
    @ApiModelProperty(value = "优惠类型 0没选择折扣 1批发 2会员")
    private Integer discountsType;
    @ApiModelProperty(value = "商品改价后的单价")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal newSingleCommodityPrice;
    @ApiModelProperty(value = "商品原来的单价")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal singleCommodityPrice;
    @ApiModelProperty(value = "总商品小计")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal commodityTotal;
    @ApiModelProperty(value = "总商品优惠总价")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal commodityDiscountTotal;
    @ApiModelProperty(value = "单商品真实价格")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal singleCommodityRealTotal;
    @ApiModelProperty(value = "总商品真实价格")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal commodityRealTotal;
    @ApiModelProperty(value = "商品佣金比例")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal commissionRate;
    @ApiModelProperty(value = "总商品佣金金额")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal commissionMoney;
    @ApiModelProperty(value = "单商品佣金金额")
    @JsonSerialize(using = CustomerBigDecimalSerialize.class)
    private BigDecimal singleCommissionMoney;
    @ApiModelProperty(value = "商品可售区域")
    private String availableArea;
    @ApiModelProperty(value = "商品发货时间")
    private Integer sendDays;
    @ApiModelProperty(value = "税率 除以100")
    private Integer taxRate;
    @ApiModelProperty(value = "商品单位名字")
    private String unitName;
    @ApiModelProperty(value = "商品品牌名称")
    private String brandName;
    @ApiModelProperty(value = "规格型号名称")
    private String attrName;
    @ApiModelProperty(value = "首期款比例")
    private Integer firstBalance;
    @ApiModelProperty(value = "尾款比例")
    private Integer tailBalance;
    @ApiModelProperty(value = "质包期")
    private Integer warrantyMonth;
    @ApiModelProperty(value = "是否改价，0否，1是")
    private Integer isChangePrice;
    @ApiModelProperty(value = "批发价;不填，询价")
    private BigDecimal wholesalePrice;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "商品是否属于询价商品:0不是,1是")
    private Integer whetherToAskForAQuotation;
    @ApiModelProperty(value = "商品备货时间")
    private Integer stockDays;
    @ApiModelProperty(value = "询盘商品类型")
    private Integer purchaseCommodityType;
    @ApiModelProperty(value = "询盘商品报价表id")
    private Long purchaseCommodityBargainId;
    @ApiModelProperty(value = "询盘商品信息表id")
    private Long purchaseInfoId;
    @ApiModelProperty(value = "询盘商品砍价报名费")
    private BigDecimal purchaseFeeMoney;
    @ApiModelProperty(value = "询盘商品砍价服务费")
    private BigDecimal purchaseFeeMoneyScalePrice;
    @ApiModelProperty(value = "询盘商品砍价状态 0未申请，1申请中、2申请成功、3申请失败、4平台已协商")
    private Integer platBargainStatus;
    @ApiModelProperty(value = "询盘订单主办人名称")
    private String organiserUserName;
}
